<?PHP

//default values

$e['server']='rtmp://m-.pinoytuner.com/cfx/st';
$e['artwork']='http://d-a.pinoytuner.com/';
$e['duration']='00:00';
$e['type']='song';

$table='media';
$id='id';
$catch='name';
include 'm/media/p_album.php';
printformheader('Add Album and Music',$content_msg);


begin_form($_GET['cmd'],$id);
?>
<h2>Album Info</h2>
<?PHP

	p_input('artist',$o,$e);
	p_input('album',$o,$e);
	p_input('label',$o,$e);
	p_input('artwork',$o,$e);
	p_input('server',$o,$e);				
	p_input('genre',$o,$e);
	$enum_data=get_enum($table,'type');
	p_select('type',$enum_data,$e,'0','1',$o);
?>


<?PHP

for($x=1;$x<=30;$x++)
{
	?>
	
	<h2>Song # <?PHP echo $x;?></h2>
<?PHP
$e['duration'.$x]='00:00';
$e['file'.$x]='mp3:';
$e['composer']='-';
	p_input('name'.$x,$o,$e);
	p_input('file'.$x,$o,$e);
	p_input('composer'.$x,$o,$e);
	p_input('duration'.$x,$o,$e);

}
?>

<?PHP
	if($_GET['cmd']=='edit')
	{
		delete_item();
	}
	

	printsubmit("Save");
	end_form($_GET['cmd']);
	printformfooter('View Content','?q=m/content/v_content.php',NULL,NULL,NULL,NULL);




?>